<?php
/**
 * fly core config
 * Copyright By 5920Team (http://www.5920.me)
 * User: yu@5920.me
 * Date: 13-9-26
 * Time: 上午11:26
 */
/** fly flag */
define('IS_FLY', 1);



//error_reporting(E_ERROR | E_PARSE);

/**
 * predefine debug switch
 * auto class load mechanism Cache switch
 * error mechanism switch
 *
 * if work for production environment please open
 */
$fly['is_debug'] = false;

/** define fly core classes auto load path array */
$fly['autoloader']['fly_classes_path'] = array(
    FLY_PATH . '/Tool',
    FLY_PATH . '/DB'
);
/** predefine fly example classes auto load path array */
$fly['autoloader']['app_classes_path'] = array();

$fly['autoloader']['cache_switch'] = !$fly['is_debug'];

/**
 * router method
 * 1 = default  index.php?m=?&a=?
 */
$fly['router']['method'] = 1;
$fly['router']['module_postfix'] = 'Module';
$fly['router']['default_module'] = 'index';
$fly['router']['default_action'] = 'run';

/**
 * DB Driver
 * Mysqli Sqlite
 */

/** mysql config */
$fly['db']['adapter'] = 'Mysqli';
$fly['db']['host'] = '127.0.0.1:3306';
$fly['db']['username'] = 'root';
$fly['db']['password'] = '123456';
$fly['db']['database'] = 'test';
$fly['db']['charset'] = 'utf8';
$fly['db']['prefix'] = '';

